package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order2")
public class Order {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private String orderId;
  private String orderType;
  private Integer productId;
  private Integer customId;
  private String payType;
  private String money;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp dealTime;
  private Integer number;
  private String orderStatus;
  private String explain;
  private String operator;
  private Integer productPlanNo;
  private Integer productLineId;
  private Timestamp productPlanTime;
  private Timestamp productPlanOvertime;
  private String remark;

  @TableField(exist = false)
  private Commodity commodity;

  @TableField(exist = false)
  private Customer customer;

  @TableField(exist = false)
  private Product product;
  
  private Integer productStatus;
  private String printer;
  private Timestamp productTime;
  private String laserCode;
}
